package routers

import (
	"github.com/gin-gonic/gin"
	"vicente-gin/controller"
	"vicente-gin/middleware"
)

func InitUserRouter(Router *gin.RouterGroup) {
	UserGroup := Router.Group("admin").Use(middleware.JWTAuth())
	{
		UserGroup.GET("/user/list", controller.GetUserList)
		UserGroup.POST("/user/add", controller.CreateUser)
		UserGroup.POST("/user/edit", controller.UpdateUser)
		UserGroup.POST("/user/del", controller.DelUser)
		//UserGroup.GET("/user/menu", controller.GetUserMenuByClaims)
		UserGroup.POST("/password", controller.ResetPwd)
	}
}
